<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>公司简介</title>
    <link rel="shortcut icon" href="favicon.ico">
    <link href="/static/manager/css/bootstrap.min.css?v=3.3.5" rel="stylesheet">
    <link href="/static/manager/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="/static/manager/css/animate.min.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="/static/manager/css/plugins/simditor/simditor.css" />
    <link href="/static/manager/css/style.min.css?v=4.0.0" rel="stylesheet"><base target="_blank">

</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content">

        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>公司简介</h5>
                    </div>
                    <div class="ibox-content">

                        <textarea id="editor" placeholder="这里输入内容" autofocus>
                            {$ggcont.info_content}
                        </textarea>

                    </div>
					
					<div class="ibox-content">
					<div class="form-group">
                                <div class="col-sm-8 col-sm-offset-3" style="text-align:right;margin-top:-6px;">
                                    <button id="tjbut" class="btn btn-primary" type="submit">确定发布</button>
                                </div>
                            </div>
					</div>
                </div>
            </div>
        </div>
        
    </div>
    <script src="/static/manager/js/jquery.min.js?v=2.1.4"></script>
    <script src="/static/manager/js/bootstrap.min.js?v=3.3.5"></script>
    <script src="/static/manager/js/content.min.js?v=1.0.0"></script>
    <script type="text/javascript" src="/static/manager/js/plugins/simditor/module.js"></script>
    <script type="text/javascript" src="/static/manager/js/plugins/simditor/uploader.js"></script>
    <script type="text/javascript" src="/static/manager/js/plugins/simditor/hotkeys.js"></script>
    <script type="text/javascript" src="/static/manager/js/plugins/simditor/simditor.js"></script>
    <script>
        $(document).ready(function(){
            var editor=new Simditor({textarea:$("#editor"),defaultImage:"img/a9.jpg"});
            $("#tjbut").click(function () {
                var title=$("input[name='title']").val();
                var content=$("#editor").val();
                $.post("/manager/Index/gg_about_do",{content:content},function(result){
                    if(result==200){
                        //window.location.href = "/manager/Index/gg_list";
                        alert("简介更新成功！");
                        window.location.reload();
                    }else {
                        alert(result);
                    }

                });
            });
        });
    </script>
</body>

</html>